package entities;

public class Master implements IMaster {
	private String name;
	private Boolean employment = new Boolean(false);
	private IOrder order;

	public Master(String name) {
		this.name = name;
	}

	public void markMaster() {
		employment = true;
	}

	public void markMasterFree() {
		employment = false;
	}

	public String getNameMaster() {
		return name;
	}

	public void setOrder(IOrder order) {
		this.order = order;
		markMaster();

	}

	public Boolean getEmploymentMaster() {
		return employment;
	}

	public IOrder getOrder() {
		return order;
	}

}
